package elements.axis; 
import flash.display.Sprite;
import elements.Types.Style;

class YAxisLeft extends YAxisBase {

	public function new( json:Dynamic ) {
		
		super( json, 'y_axis' );
		
		this.labels = new YAxisLabelsLeft( this, json );
		this.addChild( this.labels );
	}
	
	public override function get_style():Style {
		//
		// default values for a left axis
		//
		return {
			stroke:			2,
			tick_length:		3,
			colour:			'#784016',
			offset:			false,
			grid_colour:		'#F5E1AA',
			grid_visible:		true,
			three_d:		0,
			steps:			1,
			visible:		true,
			min:			0,
			max:			10
		};
		
		/*
		var maxValue:Number = Math.max(_S_bar_1->data) * 1.07;
		_S_l = round(log(_S_maxValue)/log(10));
		_S_p = pow(10, _S_l) / 2;
		_S_maxValue = round(_S_maxValue * 1.1 / _S_p) * _S_p;
		*/
	}
	
	public override function resize( label_pos:Float, sc:ScreenCoords ):Void {
		
		super.resize_helper( label_pos, sc, false);
	}
}
